<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		{:sp_get_admin_breadcrumb()}
		<form class="well form-search" method="GET" action="{:U('AdminFinance/charge')}">
			<input type="text" name="uid" style="width:120px;" value="{$uid}" placeholder="用户ID">
			充值时间：<input type="text" name="starttime" value="{$starttime}" class="js-date date" style="width:100px;" />-<input style="width:100px;" type="text" name="endtime" value="{$endtime}" class="js-date date" />
			<select name="type" style="width:100px;">
				<option value="">财务类型</option>
				<foreach name="payment" key="key" item="name">
					<option value="{$key}"<eq name="key" value="$type"> selected </eq>>{$name}</option>
				</foreach>
			</select>
			<input type="submit" class="btn btn-primary" value="搜索" />
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">序号</th>
					<th>用户/ID</th>
					<th>类型</th>
					<th>充值项目</th>
					<th>项目描述</th>
					<th>支付金额(元)</th>
					<th>实际金额(元)</th>
					<th>订单编号</th>
					<th>来源</th>
					<th>来源编号</th>
					<th>充值状态</th>
					<th>支付编号</th>
					<th>发起时间</th>
					<th>充值时间</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td><gt name="vo.uid" value="0">{$users[$vo['uid']]['user_login']} / {$vo.uid}<else/></gt></td>
					<td>{$payment[$vo['type']]}</td>
					<td>{$vo.subject}</td>
					<td>{$vo.detail}</td>
					<td>{$vo.total}</td>
					<td>{$vo.real_total}<if condition="$vo['totaldiff']"><font class="red">[*]</font></if></td>
					<td>{$vo.trade_no}</td>
					<td>{$vo.from}</td>
					<td>{$vo.orderid}</td>
					<td>
						<switch name="vo.status" >
						<case value="1"><font class="green">成功</font></case>
						<case value="2"><font class="red">失败</font></case>
						<default />待支付
						</switch>
					</td>
					<td>{$vo.pay_sn}</td>
					<td>{$vo.create_at}</td>
					<td>{$vo.paid_at}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>